<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>

		<title>更新用户</title>
		<sx:head />
	</head>
	<body>
		<h1>
			更新用户
		</h1>
		<s:form action="updateUser" method="post">
			<s:hidden name="user.id" value="%{user.id}"></s:hidden>
			<s:textfield name="user.user" label="%{getText('user.user')}"
				value="%{user.user}"></s:textfield>
			<s:textfield name="user.password" label="%{getText('user.password')}"
				value="%{user.password}"></s:textfield>
			<s:textfield name="user.staff_no" label="%{getText('user.staff_no')}"
				value="%{user.staff_no}"></s:textfield>
			<s:textfield name="user.telephone"
				label="%{getText('user.telephone')}" value="%{user.telephone}"></s:textfield>
			<s:textfield name="user.chinese_name"
				label="%{getText('user.chinese_name')}" value="%{user.chinese_name}"></s:textfield>
			<s:textfield name="user.msn" label="%{getText('user.msn')}"
				value="%{user.msn}"></s:textfield>
			<s:select name="user.sex" label="%{getText('user.sex')}"
				list="#{'0':'男','1':'女'}" value="%{user.sex}"></s:select>
			<sx:datetimepicker name="user.birthday"
				label="%{getText('user.birthday')}" displayFormat="yyyy-MM-dd"
				value="%{user.birthday}"></sx:datetimepicker>
			<s:textfield name="user.identity_card"
				label="%{getText('user.identity_card')}"
				value="%{user.identity_card}"></s:textfield>
			<sx:datetimepicker name="user.entry_date"
				label="%{getText('user.entry_date')}" displayFormat="yyyy-MM-dd"
				value="%{user.entry_date}"></sx:datetimepicker>
			<s:select name="user.job" label="%{getText('user.job')}"
				list="#{'1':'CS'}"></s:select>
			<s:select name="user.status" label="%{getText('user.status')}"
				list="#{'0':'冻结','1':'有效'}" value="%{user.status}"></s:select>
			<s:textarea name="user.comments" label="%{getText('user.comments')}"
				cols="20" rows="5" value="%{user.comments}"></s:textarea>
			<s:select name="user.is_admin" label="%{getText('user.is_admin')}"
				list="#{'0':'普通用户','1':'管理员'}"></s:select>
			<s:submit value="更新" align="center"></s:submit>
		</s:form>
	</body>
</html>
